package com.ruoyi.common.domain.business;

import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 商品对象 product
 *
 * @author Song
 * @date 2024-10-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("product")
@ApiModel(description = "商品")
public class Product extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(name = "${comment}")
    private Long id;
    /**
     * 产品名
     */
    @Excel(name = "产品名")
    @ApiModelProperty(name = "产品名")
    private String productName;
    /**
     * 分类id
     */
    @Excel(name = "分类id")
    @ApiModelProperty(name = "分类id")
    private Long categoryId;
    /**
     * 产品编码
     */
    @Excel(name = "产品编码")
    @ApiModelProperty(name = "产品编码")
    private String code;
    /**
     * erp商品id
     */
    @Excel(name = "erp商品id")
    @ApiModelProperty(name = "erp商品id")
    private String erpId;
    /**
     * 商品图片
     */
    @Excel(name = "商品图片")
    @ApiModelProperty(name = "商品图片")
    private String img;
    /**
     * 产品状态(10为下架，20为上架)
     */
    @Excel(name = "产品状态(10为下架，20为上架)")
    @ApiModelProperty(name = "产品状态(10为下架，20为上架)")
    private Long productStatus;
    /**
     * 匹配经销商id,默认为0，为0则为全部
     */
    @Excel(name = "匹配经销商id,默认为0，为0则为全部")
    @ApiModelProperty(name = "匹配经销商id,默认为0，为0则为全部")
    private String delearId;
    /**
     * 逻辑删除(0表示未删除，1表示软删除)
     */
    @TableLogic
    @ApiModelProperty(name = "逻辑删除(0表示未删除，1表示软删除)")
    private Long isDelete;

    /**
     * 料品号
     */
    @ApiModelProperty(name = "料品号")
    private String pigmentNum;
    /**
     * 标准价格
     */
    @ApiModelProperty(name = "标准价格")
    private BigDecimal standardPrice;
}
